var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
    if (req.query.id == 1) {
        res.send({
            code: 200,
            message: 'success',
            data: {
                departmentId: 2,
                nickname: 'hua',
                userName: '花',
                password: 'admin',
                phone: '17634470940',
                email: '415101916@qq.com',
                roleId: 5,
                status: 1,
                remark: 'vue前端'
            }
        })
    }else {
        res.send({
            code: 200,
            message: 'success',
            data: {
                departmentId: 2,
                nickname: 'li',
                userName: '李',
                password: 'common',
                phone: '17634470945',
                email: '415101918@qq.com',
                roleId: 4,
                status: 1,
                remark: 'java后端'
            }
        })
    }


});

module.exports = router;
